package com.js.foodordersystem.entity;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 存储餐厅信息(Restaurant)实体类
 *
 * @author makejava
 * @since 2025-01-09 10:52:53
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Restaurant implements Serializable {
    private static final long serialVersionUID = -72908117953855859L;
    /**
     * 餐厅ID，主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long restaurantId;
    /**
     * 餐厅名称
     */
    private String name;
    /**
     * 餐厅地址
     */
    private String address;
    /**
     * 餐厅联系电话
     */
    private String phone;
    /**
     * 餐厅状态：营业或打烊
     */
    private Integer status;
    /**
     * 餐厅创建时间
     */
    private Date createdAt;
    /**
     * 餐厅更新时间
     */
    private Date updatedAt;
    /**
     * 餐厅描述
     */
    private String description;
    /**
     * 搜索关键词
     */
    @TableField(exist = false)
    private String keyword;



}

